import React from 'react'

import Header from '../../components/Header'
import Info from './sunpage/Info.jsx'
import Comment from './sunpage/Comment.jsx'
import Buy from './sunpage/Buy.jsx'

// import './style.scss'

class Detail extends React.Component{
    constructor(props, context){
        super(props, context)
    }
    render() {
        return (
            <div>
                <Header title="商户详情"></Header>
                <Info id={this.props.match.params.id}></Info>
                <Buy history={this.props.history} id={this.props.match.params.id}></Buy>
                <div style={{height: '15px'}}></div>
                <Comment id={this.props.match.params.id}></Comment>
            </div>
        )
    }
    componentDidMount() {
        // console.log(this.props.match.params.id)
    }
}

export default Detail